package org.cheniy.infrastructure.persistent.dao;


import org.apache.ibatis.annotations.Mapper;
import org.cheniy.infrastructure.persistent.po.Award;
import org.cheniy.infrastructure.persistent.po.StrategyRule;

import java.util.List;

/**
 * StrategyRule DAO 用于配置奖品需要的使用的规则，和非奖品的规则（策略规则）
 */
@Mapper
public interface IStrategyRuleDao {
    List<StrategyRule> queryStrategyRuleList();

    StrategyRule queryStrategyRuleByStrategyIdRuleWeight(Long strategyId, String ruleWeight);

    /**
     * 查询规则具体内容
     * @param strategyRule
     * @return
     */
    String queryStrategyRuleValue(StrategyRule strategyRule);
}
